function curry(fn, ...args) {
    if (fn.length === args.length) {
        return fn(...args)
    } else {
        return function (...others) {
            return curry(fn, ...args, ...others)
        }
    }
}